import request from '@/utils/request';

//获取店铺列表
export function storeList(data: any) {
    return request({
        url: '/scrm-api/console/retail/shop/store-list',
        method: 'get',
        params: data
    });
}
// 获取商品素材列表
export function productList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/product/list',
        method: 'post',
        data
    });
}
// 获取页面素材列表
export function pageList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/page/list',
        method: 'post',
        data
    });
}
// 浏览明细列表
export function browsedetailList(data: any) {
    return request({
        url: '/scrm-api/console/media/content/browse-detail/list',
        method: 'post',
        data
    });
}
// 导出数据
export function importDetail(data: any) {
    return request({
        url: '/scrm-api/console/media/content/browse-detail/import',
        method: 'post',
        data
    });
}

//发送渠道，浏览环境公共字典枚举
export function dictEnum(data: any) {
    return request({
        url: '/scrm-api/console/common/dict_enum',
        method: 'get',
        params: data
    });
}

export function doDirectSync(data: any = {}) {
    return request({
        url: '/scrm-api/console/retail/product/directSync',
        method: 'post',
        params: data
    });
}

export function pageListFun(data: any) {
    return request({
        url: '/scrm-api/console/media/content/page/all/list',
        method: 'GET',
        params: data
    });
}

//电商素材-商品导入
export function importProduct(data: any) {
    return request({
        url: '/scrm-api/console/retail/product/import-product',
        method: 'post',
        data
    });
}

// 获取淘口令
export function getTaoPassWord(data: any) {
    return request({
        url: '/scrm-api/console/retail/shop/promotion/get-tao-pass-word',
        method: 'post',
        data
    });
}
